export enum Methods {
    get = 'get',
    post = 'post',
    put = 'put',
    delete = 'delete'
}
function getRequestMethod(type: Methods) {
    return (path: string) => {
        return (target: any, key: string) => {
            Reflect.defineMetadata('path', path, target, key)
            Reflect.defineMetadata('method', type, target, key)
        }
    }
}
export const Get = getRequestMethod(Methods.get)
export const Post = getRequestMethod(Methods.post)
export const put = getRequestMethod(Methods.put)
export const Delete = getRequestMethod(Methods.delete)
